﻿namespace Sidvall.UI.Dialogs
{
    public class MessageOption
    {
        #region Business Members

        public string Id { get; private set; }
        public string Message { get; private set; }

        #region Copy

        public MessageOption Copy()
        {
            MessageOption item;

            item = new MessageOption();
            item.Import(this);

            return item;
        }

        #endregion
        #region Import

        public void Import(MessageOption item)
        {
            if (item == null)
                throw new System.ArgumentNullException("item");

            this.Id = item.Id;
            this.Message = item.Message;
        }

        #endregion
        #region ToString

        public override string ToString()
        {
            return this.Message;
        }

        #endregion

        #endregion
        #region Constructor

        private MessageOption()
        {
        }
        public MessageOption(string id, string message)
        {
            this.Id = id;
            this.Message = message;
        }

        #endregion
    }
}
